
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="common.jsp" %>
<%@ page import="wargame.entity.*" %>
<%@ page import="module.ManageEmployee" %>

<%
            new ManageEmployee().autoGenEmployee();

            ArrayList<Employee> employees=EmployeeDAO.retrieveTempEmployee();
%>



<html>
    <c:set var="title" value="MIC Tycoon ~ Hire Emmployees"/>
    <%@ include file="htmlheader.jsp" %>
    <body>


        <div id="resolution">
            <!-- HEADER -->
            <div id="header">
                <div id="calculator"><div id="budget-left">10,000,000</div></div>
                <div id="clock"><div id="time-left">00:00:00</div></div>
                <div id="calendar"><div id="current-turn">1</div></div>
                <div id="postit"><div id="guide">
                        <u>GUIDE</u><br />
                        1. Fastest Finger FIRST!!<br />
                        2. Pay employee's salary every 3 turns<br />
                        3. Employee's salary based on skill set<br />
                        4. Employee hired only can be used in the next turn<br />
                        5. Employee has a max of 50hrs. With 1 higher level, he will has double the work time<br />
                        6. Fire employee need to pay double his salary<br />
                        7. DO NOT over employee<br />
                        8. Calculate carefully<br />
                    </div></div>
            </div>

            <!-- BODY -->
            <form method="post" action="/wargaming/employee/hireEmployee.do">
                <div id="content">
                    <% for (int i = 0; i < employees.size(); i++) {%>
                    <% Employee e = employees.get(i);%>

                    <c:if test="${announcement!=null}">
                        <div id="announcement">
                            <p><c:out value="${announcement}"/></p>
                        </div>
                    </c:if>

                    <div id="paper-holder">
                        <div id="paper-content-over">
                            <div id="value-grid">1</div><div id="value-grid">1</div><div id="value-grid">1</div><div id="value-grid">1</div>
                            <div id="value-grid">1</div><div id="value-grid">1</div><div id="value-grid">1</div><div id="value-grid">1</div>
                        </div>

                        <div id="paper-content">
                            [<b>Employee <%=e.getEmployee_id()%></b>]<br />
                            <b>Exp Salary:</b>1000<br />
                            <hr /><b>C Sharp Skill Level:<%=e.getSkillPoints_c_sharp()%></b><br />
                            <hr /><b>Dot Net Skill Level:<%=e.getSkillPoints_dot_net()%>></b><br />
                            <hr /><b>JSP Skill Level:<%=e.getSkillPoints_jsp()%></b><br />
                            <hr /><b>MS SQL Skill Level:<%=e.getSkillPoints_mssql()%></b><br />
                            <hr /><b>MYSQL Skill Level:<%=e.getSkillPoints_mysql()%></b><br />
                            <hr /><b>Oracle Skill Level:<%=e.getSkillPoints_oracle()%></b><br />
                            <hr /><b>PHP Sharp Skill Level:<%=e.getSkillPoints_php()%></b><br />
                            <hr /><b>RUBY Sharp Skill Level:<%=e.getSkillPoints_ruby()%></b><br />
                            <img src="images/logos/logo-levels.png" border="0" />
                            <hr />
                            <input type="hidden" name="selectedEmployee" value="<%=e.getEmployee_id()%>">
                            <input type="button" value="Hire Me"/>
                        </div>
                    </div>
                    <%}%>
                </div>
            </form>
        </div>
    </body>
</html>
